home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_vim.idb / usr / freeware / share / vim / syntax / atlas.vim.z / atlas.vim
Encoding:
Text File  |  1998-10-28  |  2.4 KB  |  83 lines

  1. " Vim syntax file
  2. " Language:    ATLAS
  3. " Maintainer:    Inaki Saez <jisaez@sfe.indra.es>
  4. " Last change:    1998-01-28
  5.  
  6. syn clear
  7.  
  8. syn case ignore
  9.  
  10. syn keyword atlasStatement    begin terminate
  11. syn keyword atlasStatement    fill calculate compare
  12. syn keyword atlasStatement    setup connect close open disconnect reset
  13. syn keyword atlasStatement    init fetch
  14. syn keyword atlasStatement    apply measure verify remove
  15. syn keyword atlasStatement    perform leave finish output delay
  16. syn keyword atlasStatement    prepare execute
  17. syn keyword atlasStatement    do
  18. syn match atlasStatement    "\<go[     ]\+to\>"
  19. syn match atlasStatement    "\<wait[     ]\+for\>"
  20.  
  21. syn keyword atlasInclude    include
  22. syn keyword atlasDefine        define require declare identify
  23.  
  24. "syn keyword atlasReserved    true false go nogo
  25. syn keyword atlasReserved    true false
  26.  
  27. syn keyword atlasStorageClass    external global
  28.  
  29. syn keyword atlasConditional    if then else end
  30. syn keyword atlasRepeat        while for thru
  31.  
  32. " Flags BEF and statement number
  33. syn match atlasSpecial        "^[BE     ][     ]*[0-9]*\>"
  34. " Highlight Start Test statement numbers differently (100 multiples)
  35. syn match atlasStartTest    "^[     ]*[0-9]*00\>"
  36.  
  37. " Number formats
  38. syn match atlasHexNumber    "X'[0-9A-F]\+'"
  39. syn match atlasOctalNumber    "O'[0-7]\+'"
  40. syn match atlasBinNumber    "B'[01]\+'"
  41. syn match atlasNumber        "\<[0-9]\+\>"
  42. "Floating point number part only
  43. syn match atlasDecimalNumber    "\.[0-9]\+\([eE][-+]\=[0-9]\)\=\>"
  44.  
  45. syn region  atlasFormatString    start=+((+    end=+))+
  46. syn region  atlasString        start=+\<C'+    end=+'+   oneline
  47. syn region  atlasComment    start=+^C+    end=+\$+
  48.  
  49. syn match  atlasIdentifier    "'[A-Za-z0-9 ._-]\+'"
  50.  
  51. "Synchronization with Statement terminator $
  52. syn sync match atlasTerminator grouphere atlasComment "^C"
  53. syn sync match atlasTerminator groupthere NONE "\$"
  54. syn sync maxlines=100
  55.  
  56.  
  57. if !exists("did_atlas_syntax_inits")
  58.   let did_atlas_syntax_inits = 1
  59.  
  60.   hi link atlasConditional    Conditional
  61.   hi link atlasRepeat        Repeat
  62.   hi link atlasStatement    Statement
  63.   hi link atlasNumber        Number
  64.   hi link atlasHexNumber    Number
  65.   hi link atlasOctalNumber    Number
  66.   hi link atlasBinNumber    Number
  67.   hi link atlasDecimalNumber    Float
  68.   hi link atlasFormatString    String
  69.   hi link atlasString        String
  70.   hi link atlasComment        Comment
  71.   hi link atlasInclude        Include
  72.   hi link atlasDefine        Macro
  73.   hi link atlasReserved        PreCondit
  74.   hi link atlasStorageClass    StorageClass
  75.   hi link atlasIdentifier    NONE
  76.   hi link atlasSpecial        Special
  77.   hi atlasStartTest        guifg=black guibg=yellow
  78. endif
  79.  
  80. let b:current_syntax = "atlas"
  81.  
  82. " vim: ts=8
  83.